<%@ page language="java" pageEncoding="utf-8"%>
<%@taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c"%>
<%@taglib uri="http://java.sun.com/jsp/jstl/functions" prefix="fn"%>
<%
	pageContext.setAttribute("APP_PATH", request.getContextPath());
%>
<!DOCTYPE HTML>
<html>
<head>
	<title>视频播放</title>
	<link href="${APP_PATH}/static/img/secured.jpg" rel="shortcut icon">
	<link rel="stylesheet" href="${APP_PATH}/static/bootstrap/css/bootstrap.min.css">
	<script src="${APP_PATH}/static/js/jquery-3.3.1.min.js"></script>
	<script src="${APP_PATH}/static/bootstrap/js/bootstrap.min.js"></script>
</head>
<body>
<div class="col-sm-8 col-sm-offset-2 col-md-11 col-md-offset-1 main">
	<div class="text-right">
		<span class="glyphicon glyphicon-hand-right" aria-hidden="true"></span>
		<a href="${APP_PATH}/videos">返回视频列表</a>
	</div>
	<h2 class="sub-header">视频播放</h2>
	<div class="embed-responsive embed-responsive-16by9">
		<video class="embed-responsive-item" controls>
			<c:out value="${APP_PATH}/uploadedFiles/${fn:escapeXml(video.titleOrig)}" /> <!-- 调试用，检查路径 -->
			<source src="${APP_PATH}/uploadedFiles/${fn:escapeXml(video.titleOrig)}" type="${video.type}">
			您的浏览器不支持视频标签。
		</video>
	</div>
</div>
</body>
</html>
